CC = gcc
CFLAGS = -l pthread

OBJS = work_thread.o
PROGS = tftp_server tftp_client

all: ${OBJS} ${PROGS}

tftp_server:
	${CC} server.c ${OBJS} ${CFLAGS} -o tftp_server

tftp_client:
	${CC} client.c ${CFLAGS} -o tftp_client
	
${OBJS}:
	${CC} -c work_thread.c

clean:
	rm -f ${PROGS} ${OBJS}
	
